import { $t } from "@/plugins/i18n";
import { mymonitor } from "@/router/enums";

export default {
  path: "/monitor",
  redirect: "/monitor/index",
  meta: {
    icon: "clarity:dashboard-line",
    title: $t("menus.hsMonitor"),
    rank: mymonitor,
    roles: ["admin", "common"]
  },
  children: [
    {
      path: "/monitor/index",
      name: "Monitor",
      component: () => import("@/views/monitor/index.vue"),
      meta: {
        title: $t("menus.hsMonitor")
      }
    },
    {
      path: "/monitor/hisdata/index",
      name: "HisData",
      component: () => import("@/views/monitor/hisdata/index.vue"),
      meta: {
        showLink: false,
        activePath: "/monitor/hisdata/index",
        title: "历史数据"
      }
    }
  ]
} as RouteConfigsTable;
